import i18n from '@/common/lang'

export const warehouseColumns = [
  {
    label: '仓库名称',
    width: 'auto',
    prop: 'addrName',
    fixed: true
  },
  {
    label: '仓库编码',
    width: 'auto',
    prop: 'addrCode'
  },
  {
    label: '地址',
    width: 'auto',
    prop: 'address'
  },
  {
    label: '联系人',
    width: 'auto',
    prop: 'contacts'
  },
  {
    label: '联系方式',
    width: 'auto',
    prop: 'contactsPhone'
  },
  {
    label: '创建人',
    width: 'auto',
    prop: 'createTime'
  },
  {
    label: '创建时间',
    width: 140,
    prop: 'createName'
  }
]

export const warehouseActions = [
  {
    key: 'edit',
    text: i18n.t('common.edit')
  },
  {
    key: 'delete',
    text: i18n.t('common.delete')
  }
]
export const purchasingOrgColumns = [
  {
    label: '采购组织名称',
    width: 'auto',
    prop: 'purchaseOrgName',
    fixed: true
  },
  {
    label: '采购组织编码',
    width: 'auto',
    prop: 'purchaseOrgCode'
  },
  {
    label: '创建人',
    width: 'auto',
    prop: 'createName'
  },
  {
    label: '创建时间',
    width: 'auto',
    prop: 'createTime'
  }
]

export const purchasingOrgActions = [
  {
    key: 'edit',
    text: i18n.t('common.edit')
  },
  {
    key: 'delete',
    text: i18n.t('common.delete')
  }
]

export const purchasingGroupColumns = [
  {
    label: '采购组名称',
    width: 'auto',
    prop: 'purchaseTeamName',
    fixed: true
  },
  {
    label: '采购组编码',
    width: 'auto',
    prop: 'purchaseTeamCode'
  },
  {
    label: '创建人',
    width: 'auto',
    prop: 'createName'
  },
  {
    label: '创建时间',
    width: 'auto',
    prop: 'createTime'
  }
]

export const purchasingGroupActions = [
  {
    key: 'edit',
    text: i18n.t('common.edit')
  },
  {
    key: 'delete',
    text: i18n.t('common.delete')
  }
]
